﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NetfractionHub.Network.Protocol;
using NetfractionHub.Network.Protocol.BASE.Factory;

namespace NetfractionHub.LocalMachine.BotCommands.Handler
{
    [CommandHandler("savesettings")]
    public class SaveSettings : CommandHandler
    {
        public override BotReturnStatus HandleCommandMessage(NetfractionHub.RemoteMachine.Node source, CommandMessage message)
        {
            NetfractionHub.Security.IdentityManager.SaveIdentities();
            NetfractionHub.Settings.HubSettings.SaveSettings();

            return true;
        }
    }
}
